package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 用户注销日志
 */
@Getter
@Setter
@Document(collection = "wechat_write_off_log")
public class WechatWriteOffLog extends EntityBase {
    private String userId;
    private String openId;
    private String desc;
    private Date date;
    private String name;
    @Indexed(background = true)
    private String mobile;
    private String universityId;
    private String universityName;
    /**
     * 订单数量
     */
    private Integer orderNum;
    /**
     * 执行任务的ID
     */
    private String writeOffTaskId;

    private String appId;
    /**
     * 用户 openId列表，<appId,List<openId>
     */
    private HashMap<String, List<String>> openIds=new HashMap<String, List<String>>();

    private String ip;

    private String writeOffReason;
    /**
     * account:账户
     * activity:活动
     */
    private String type="activity";
}
